package com.ly.blog2Word.service;

import com.alibaba.fastjson.JSONObject;
import com.ly.blog2Word.service.impl.CommAdminHystrixImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: lyMaster
 * @time: 2020/7/19 11:11
 */
@FeignClient(name = "blog2-admin",fallback = CommAdminHystrixImpl.class)
public interface CommAdminService {

    @RequestMapping("/admin/getLoginUserName")
    public String getLoginUserName();

    // operation 用户操作 - 记录地址信息
    @RequestMapping("/admin/saveVisitor")
    public JSONObject saveVisitor(@RequestParam(value = "operation",required = false)String operation
                            , @RequestParam(value = "ip",required = false)String ip
                            , @RequestParam(value = "method",required = false)String method);

}
